//
//  UTTaskCounterRecordCell.swift
//  UniversalTool
//
//  Created by LGB on 2025/3/7.
//

import UIKit

class UTTaskCounterRecordCell: UITableViewCell {
    
    @IBOutlet weak var taskName: UILabel!
    @IBOutlet weak var timeLabel: UILabel!
    
    var model: UTTaskCounterItemModel? {
        didSet {
            guard let model = model else { return }
            taskName.text = (model.isRepeat ? "完成了重复任务：去" : "完成了任务：去") + "\(model.number)次" + model.taskName
            timeLabel.text = model.finishTime
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
}
